<?php

/**
 * info actions.
 *
 * @package    interankiety
 * @subpackage info
 * @author     Karol Koronowicz
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class infoActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
        if ($this->name_slug = $this->getRequestParameter('name_slug')) {

          $this->strona = Doctrine::getTable('Pages')
            ->createQuery('a')
            ->where('a.name_slug = ?', array($this->getRequestParameter('name_slug')))
            ->fetchOne();


          $this->getResponse()->setTitle($this->strona->getName().' - '.sfConfig::get('app_tytul'), false);

          $actualpage='info';
        }
  }
}
